﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace LunarWorldSDK.Serialization
{
    internal static class SerializationTypeParser
    {
        public static object ParseType(object obj)
        {
            System.Type mType = obj.GetType();

            if (mType == typeof(Vector3))
            {
                Vector3 v3Val = (Vector3)obj;

                Vector3s serv3 = new Vector3s(v3Val);

                obj = serv3;
            }

            return obj; 
        }

        public static object GetFromParse(object obj)
        {
            System.Type mType = obj.GetType();

            if (mType == typeof(Vector3s) )
            {
                Vector3s serv3 = (Vector3s)obj;

                Vector3 finalv3 = serv3;

                return finalv3;
            }

            return obj;
        }

    }
}